Skip to content

Fix syntax error in isValidEmail method - #8

Closed
devin-ai-integration[bot] wants to merge 4 commits into
masterfrom
feature/add-validation-method
Closed

devin-ai-integration[bot] wants to merge 4 commits into
masterfrom
feature/add-validation-method

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 9, 2025

Copy link
Copy Markdown

Fix syntax error in isValidEmail method and update deprecated GitHub Actions

Summary

This PR addresses a CI build failure that had two root causes:

  1. Syntax error: Missing semicolon in the new isValidEmail method in Util.java
  2. Deprecated dependencies: GitHub Actions workflow was using v2 actions that have been shut down by GitHub

The changes include:

  • Fixed compilation error by adding missing semicolon to isValidEmail method
  • Added basic email validation logic that checks for non-null input and presence of "@" symbol
  • Updated GitHub Actions workflow to use current stable versions (checkout@v5, setup-java@v5, cache@v4)

Review & Testing Checklist for Human

  • Verify email validation requirements - The current implementation only checks for != null && contains("@"). Confirm this basic validation meets your requirements, as it would accept strings like "@@", "a@", or "@b" as valid emails
  • Consider adding unit tests - The new isValidEmail method has no test coverage. Should we add tests to verify the validation behavior?
  • Test CI workflow - Verify the updated GitHub Actions versions work correctly and don't introduce any unexpected behavior changes

Notes

  • All 68 existing tests continue to pass
  • The isValidEmail method is not yet used anywhere in the codebase
  • GitHub deprecated actions/cache@v2 in December 2024, requiring the workflow updates

Link to Devin run: https://app.devin.ai/sessions/981a350c109f4b4c83d56eec4eeb7802
Requested by: @samfert-codeium

samfert and others added 2 commits October 9, 2025 14:35
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration Bot and others added 2 commits October 9, 2025 21:45
- Update actions/checkout from v2 to v5
- Update actions/setup-java from v2 to v5
- Update actions/cache from v2 to v4

This fixes the CI failure caused by GitHub's shutdown of v2 actions.

Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
- Update build.gradle to use googleJavaFormat('1.7') for Java 11 compatibility
- Remove trailing whitespace in Util.java
- Auto-format DefaultJwtServiceTest.java to comply with google-java-format rules

The default google-java-format version had module access errors with Java 11.
Version 1.7 resolves these compatibility issues.

Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
@samfert samfert closed this Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant